package www.test.dao;

import java.sql.SQLException;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.mysql.jdbc.PreparedStatement;

import www.test.bean.UserInfo;
import www.test.utils.KeyId;
import www.test.utils.jdbcUtils;

public class signDao
{

	public static boolean insert(HttpServletRequest request, HttpServletResponse response, UserInfo domain) throws SQLException
	{
		String sql ="insert into test (id,username,password,age,email)values(?,?,?,?,?)";
		Object[] params={KeyId.getKeyId(),domain.getUsername(),domain.getPassword(),domain.getAge(),domain.getEmail()};
		return jdbcUtils.update(sql, params);
		
		
	}

}
